Skip to content

Fix ShaderDebugInfo having invalid line numbers in 1.0#4189

Merged
arcady-lunarg merged 1 commit intoKhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-fix-debuginfo
Mar 24, 2026
Merged

Fix ShaderDebugInfo having invalid line numbers in 1.0#4189
arcady-lunarg merged 1 commit intoKhronosGroup:mainfrom
spencer-lunarg:spencer-lunarg-fix-debuginfo

Conversation

@spencer-lunarg
Copy link
Copy Markdown
Contributor

closes #3863

This is needed in order to have valid SPIR-V once I drop KhronosGroup/SPIRV-Tools#5986 in spirv-val

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 19, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

@arcady-lunarg arcady-lunarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor test detail that should be fixed, otherwise lgtm

20: String "inued.
// This is filler text to cause the source length to exceed the maximum length of DebugSource and require the use of DebugSourceContinued.
// This is filler text to cause the source length to exceed the maximum length of DebugSource and require the use of DebugSourceContinued.
// This is filler text to cause the source length to exceed the maximum length of DebugSource "
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add another copy of the filler comment to the test file to maintain the structure of the test with two DebugSourceContinueds?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think I got it as best as it will get

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's fine, I just wanted the same number of instructions in the SPIR-V result.

@spencer-lunarg spencer-lunarg force-pushed the spencer-lunarg-fix-debuginfo branch from 7e705af to 1485048 Compare March 19, 2026 15:32
@arcady-lunarg arcady-lunarg merged commit e4c4089 into KhronosGroup:main Mar 24, 2026
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Line numbers don't add up when additional items are added in front of DebugSource string

3 participants